<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class TDevicetype extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('t_devicetype', function (Blueprint $table) {
             $table->engine = 'MyISAM';
             $table->charset = 'utf8';
             $table->collation = 'utf8_general_ci';
            // CONTENT
            $table->increments('dt_index')->nullable(false)->comment('');
			$table->integer('dt_typeid')->nullable(false)->default(0)->comment('');
			$table->string('dt_typename', 64)->nullable(false)->default('')->comment('');
			$table->boolean('dt_issupportext')->nullable(false)->default(0)->comment('');
			$table->boolean('dt_isenable')->nullable(false)->default(0)->comment('');
			$table->string('dt_rtdata_table', 64)->nullable(false)->default('')->comment('');
			$table->string('dt_hisdata_table', 64)->nullable(false)->default('')->comment('');
			$table->string('dt_typememo', 255)->nullable()->default(null)->comment('');
			$table->string('dt_page', 255)->nullable(false)->default('')->comment('');
			$table->string('dt_pre', 255)->nullable(false)->default('')->comment('');
			$table->string('dt_icon', 255)->nullable()->default('')->comment('');
			$table->integer('haschildType')->nullable()->default(0)->comment('');
			$table->integer('dt_MoniType')->nullable(false)->default(0)->comment('');
			$table->string('dt_URL', 255)->nullable()->default(null)->comment('');
			
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('t_devicetype');
    }
}
